@charset 'utf-8';
@use 'sass:meta';
@use 'variables/main';
@use 'mixins';
@use 'helpers';
@use 'movement';
@use 'variables/colors';
@use 'variables/layout';

:root {
  --env: $ENV;
}

.plotly-editor--theme-provider {
  @include mixins.generateVars;
}

.editor_controls {
  position: relative;
  width: var(--editor-width);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  @include meta.load-css('components/main');
  @include mixins.font-smoothing;
  font-family: var(--font-family-body);
  &__wrapper {
    display: flex;
    flex-grow: 1;
  }
  a {
    color: colors.$color-dodger-shade;
    cursor: pointer;
  }
}

.plotly_editor {
  display: flex;
  /*
       We are defining the max height of the app so that the editor knows how big to be
       currently the editor will take up whatever space it can if it is not constrained in its parent
     */
  flex-grow: 1;
  height: 100%;
  max-height: 100%;
  width: 100%;
}

.plotly_editor_plot {
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  flex-grow: 1;
}
